#if !defined(AFX_MYHEADERCTRL_H__341B4EBD_A348_46C1_97E9_46B0C185DFAC__INCLUDED_)
#define AFX_MYHEADERCTRL_H__341B4EBD_A348_46C1_97E9_46B0C185DFAC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyHeaderCtrl.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// DHeaderCtrl window
#include "..\COMM\common2.h"
class DHeaderCtrl : public CHeaderCtrl
{
// Construction
public:
	DHeaderCtrl();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(DHeaderCtrl)
	protected:
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~DHeaderCtrl();

	// Generated message map functions
protected:
	//{{AFX_MSG(DHeaderCtrl)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnPaint();
	//}}AFX_MSG
	afx_msg void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
	
	LRESULT OnLayout( WPARAM wParam, LPARAM lParam );

	DECLARE_MESSAGE_MAP()
public:
	int m_nHeadHeight;
	BTS7_SYSTEM_SET_FONT m_font;
	void SetHeader();
	BOOL SetItem(int nPos, HDITEM* pHeaderItem); 
	BOOL m_bChanged;
	WORD m_wChanged;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYHEADERCTRL_H__341B4EBD_A348_46C1_97E9_46B0C185DFAC__INCLUDED_)
